package com.kws.merchant.service.impl;


import com.kws.merchant.domain.OperationTicketMember;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kws.merchant.mapper.OperationTicketMemberMapper;
import com.kws.merchant.service.OperationTicketMemberService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;

import java.util.List;

/**
 * 两票-工作票-成员(OperationTicketMember)表服务实现类
 *
 * @author yxy
 * @since 2024-12-20 16:30:07
 */
@Service("operationTicketMemberService")
public class OperationTicketMemberServiceImpl extends ServiceImpl<OperationTicketMemberMapper, OperationTicketMember> implements OperationTicketMemberService {

    @Resource
    private OperationTicketMemberMapper operationTicketMemberMapper;


    /**
     * 分页查询列表
     */
    @Override
    public Page<OperationTicketMember> pageList(OperationTicketMember operationTicketMember) {
        Page<OperationTicketMember> page = new Page<>(0, 10);
        LambdaQueryWrapper<OperationTicketMember> queryWrapper = Wrappers.lambdaQuery();

        return this.page(page, queryWrapper);
    }

    /**
     * 查询工作票成员
     * @param id
     * @return
     */
    @Override
    public List<OperationTicketMember> listByTicketId(Long id) {
        return operationTicketMemberMapper.listByTicketId(id);
    }


}
